Mathematics for machine learning